package com.lottery.system.dao.dataobject;

import com.lottery.system.service.enums.ActivityStatusEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author: xiaoxie
 * create: 2024-09-09 11:48
 * @BelongsProject: lottery-system
 * @BelongsPackage: com.lottery.system.dao.dataobject
 * description: 活动表数据
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ActivityDO extends BaseDo{
    /**
     * 活动描述
     */
    private String description;
    /**
     * 活动名称
     */
    private String activityName;
    /**
     * 活动状态
     */
    private String status;
    /**
     * @description: 获取活动是否正在进行中
     * @author: xiaoxie
     * @date: 2024/9/9 21:55
     * @param: []
     * @return: java.lang.Boolean
     **/
    public Boolean valid() {
        return status.equals(ActivityStatusEnum.RUNNING.name());
    }
}
